package cc.woori.mobile.podcast;

public enum EnclosureType implements CharSequence {
    MP3("audio/mpeg"), M4A("audio/x-m4a"), MP4("video/mp4"), M4V("video/x-m4v"), MOV(
	    "video/quicktime"), PDF("application/pdf");

    private String type;

    private EnclosureType(String type) {
	this.type = type;
    }

    public String toString() {
	return type;
    }

    public int length() {
	return type.length();
    }

    public char charAt(int index) {
	return type.charAt(index);
    }

    public CharSequence subSequence(int start, int end) {
	return type.subSequence(start, end);
    }
}
